import { defineStore } from "pinia";
import { HomeConfig } from "@/api/home/types";
export const IndexStore = defineStore("index", {
  state: () => ({
    counter: 1,
    name: "Eduardo",
  }),
  getters: {
    doubleCount: (state: any) => state.counter * 2,
  },
  actions: {
    resetCounter(param: any) {
      this.counter = param;
    },
  },
});
export const HomeConfigStore = defineStore("HomeConfig", {
  state: () => ({
    value: {} as HomeConfig,
  }),
  getters: {
  },
  actions: {
    updateHomeConfig(param: HomeConfig) {
      this.value = param;
    },
  },
});
